package com.assignwork.mapper;

import com.assignwork.dto.DailyPlanDTO;
import com.assignwork.dto.LineAuditDTO;
import com.assignwork.vo.DailyPlanMobileVO;
import com.assignwork.vo.DailyPlanVO;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.assignwork.entity.DailyPlan;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 日计划Mapper
 */
public interface DailyPlanMapper extends BaseMapper<DailyPlan> {

    List<DailyPlanVO> listDailyPlan(@Param("search") DailyPlanDTO search, @Param("order") List<OrderItem> order);

    List<DailyPlanVO> listDailyPlan4sd(@Param("dto") DailyPlanDTO dto);

    @SqlParser(filter = true)
    List<DailyPlanMobileVO> listDailyPlan4Mobile(IPage page, @Param("dto") LineAuditDTO dto);
}